package com.example.shardingspheredemo.model.t.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;

/**
 * @author Andrew Yang
 * @className UserEntity
 * @description
 * @package com.example.shardingspheredemo.model.t.entity
 * @create 2020-09-04 15:11
 */
@Data
@TableName("T_USER")
public class UserEntity {
    @TableId
    private Long id;
    @TableField("USER_NAME")
    private String userName;
    @TableField("AGE")
    private Integer age;
    @TableField("SCORE")
    private Integer  score;

    public UserEntity() {
    }

    public UserEntity(Long id, String userName, int age, int score) {
        this.id = id;
        this.userName = userName;
        this.age = age;
        this.score = score;
    }

    public UserEntity(String userName, Integer age, Integer score) {
        this.userName = userName;
        this.age = age;
        this.score = score;
    }
}
